package net.ocps.htc.SpeedReactor;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.TextureRegion;

public class Art {

	public static TextureRegion[] buttons;
	public static TextureRegion bg;
	public static TextureRegion splashscreen_bg;
	public static TextureRegion splashscreen_logo;
	public static TextureRegion menu;
	public static TextureRegion blue_win;
	public static TextureRegion red_win;
	
	public static void load() {
		bg = load("res/background.png", 1280, 720);
		buttons = new TextureRegion[2];
		buttons[0] = load("res/button_blue.png", 128, 720);
		buttons[1] = load("res/button_red.png", 128, 720);
		buttons[1].flip(false, false);
		buttons[0].flip(true, true);
		splashscreen_bg = load("res/splashcreen_bg.png", 1920, 1280);
		splashscreen_logo = load("res/splashscreen_logo.png", 1280, 720);
		splashscreen_logo.flip(false, true);
		menu = load("res/menu.png", 1280, 720);
//		menu = load("res/red_screen.png", 1280/2, 720);
//		menu = load("res/blue_screen.png", 1280/2, 720);
		
	}

	private static TextureRegion load(String n, int w, int h) {
		Texture texture = new Texture(Gdx.files.internal(n));
		TextureRegion region = new TextureRegion(texture, 0, 0, w, h);
		region.flip(false, true);
		return region;
	}

}
